package ooday02;

public class Chick extends Animal{


    Chick(String name,int age,String color,String food){
        super(name,age,color,food);
    }
    void layEggs(){
        System.out.println("一只"+age+"岁的"+"，名叫"+name+"的母鸡在下蛋");
    }
    //方法重写了
    void eat(){
        System.out.println("一只名字叫"+name+"的，它的年龄是"+age+"岁，颜色是"+color+"的,正在嘎嘎"+
                food+"的时候被被人拿过去噶顿着吃");
    }
}
